package com.copd.service;

import com.copd.entity.Permission;

import java.util.List;

public interface PermissionService {
    
    List<Permission> getAllPermissions();
    
    Permission getPermissionById(Integer permissionId);
    
    Permission getPermissionByKey(String permissionKey);
    
    Permission createPermission(Permission permission);
    
    Permission updatePermission(Permission permission);
    
    boolean deletePermission(Integer permissionId);
    
    List<Permission> getPermissionsByRoleId(Integer roleId);
    
    List<Permission> getPermissionsByUserId(Integer userId);
    
    boolean updateUserPermissions(Integer userId, List<String> permissionKeys);
} 